* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.watermark {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 9999 !important;
    display: block !important;
}

.watermark-item {
    position: absolute !important;
    user-select: none !important;
    color: rgba(0, 0, 0, 0.15) !important;
    font-size: 18px !important;
    transform: rotate(-30deg) !important;
    white-space: nowrap !important;
    line-height: 1.5 !important;
    padding: 20px !important;
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.security-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.security-content {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    width: 92%;
    max-width: 400px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.security-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.security-info {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #1890ff;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    top: 2px;
}

.verify-code-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.security-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d9d9d9;
    border-radius: 0.25rem;
    font-size: 1rem;
    transition: all 0.3s;
    -webkit-appearance: none;
}

.security-input:focus {
    border-color: #1890ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.verify-code-button {
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #1890ff;
    border-radius: 0.25rem;
    color: #1890ff;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    min-width: 5.5rem;
    -webkit-tap-highlight-color: transparent;
}

.verify-code-button:hover {
    background-color: #e6f7ff;
}

.verify-code-button:disabled {
    background-color: #f5f5f5;
    border-color: #d9d9d9;
    color: #bfbfbf;
    cursor: not-allowed;
}

.security-button {
    width: 100%;
    padding: 0.875rem;
    background-color: #1890ff;
    border: none;
    border-radius: 0.25rem;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.security-button:disabled {
    background-color: #f5f5f5 !important;
    color: #bfbfbf !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

.security-button:hover {
    background-color: #40a9ff;
}

.security-info a {
    color: #1890ff;
    text-decoration: none;
}

.security-info a:hover {
    color: #40a9ff;
}

.container {
    min-height: 100%;
    max-width: 100%;
    margin: 0 auto;
    background-color: #fff;
    padding: 16px;
    box-shadow: none;
    display: none;
}

@media (max-width: 320px) {
    .security-content {
        padding: 1rem;
    }
    .verify-code-button {
        padding: 0.75rem 0.5rem;
        min-width: 4.5rem;
    }
    .info-label {
        width: 7rem;
    }
}

@media (min-width: 768px) {
    body {
        padding: 16px;
    }

    .container {
        max-width: 600px;
        min-height: auto;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

.header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 8px;
}

.content {
    line-height: 1.8;
}

.info-item {
    display: flex;
    margin-bottom: 12px;
}

.info-label {
    width: 8rem;
    color: #666;
    flex-shrink: 0;
}

.info-value {
    flex: 1;
    color: #333;
}

.source {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: #666;
}

.role-select-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.role-select-content {
    background: white;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    max-width: 90%;
    width: 320px;
}

.role-select-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.role-select-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.role-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #1890ff;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.role-button:hover {
    background-color: #40a9ff;
}